Advertisement
Guest User

Untitled

a guest
Jan 23rd, 2018
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. int res = 0;
  2. int nval = -1;
  3.  
  4. errno = 0;
  5. res = nice(nval);
  6.  
  7. #ifdef 1
  8. if ((-1 == res) && (errno != 0))
  9. #else
  10. if (errno != 0)
  11. #endif
  12. {
  13.     fprintf(stderr, "failed to set nice %d: %s\n", nval, strerror(errno));
  14.     exit(-1);
  15. }
  16.  
  17. printf("priority is %d\n", res)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement