- Timestamp:
- Jul 17, 2014, 12:32:26 PM (12 years ago)
- Location:
- branches/eam_branches/ipp-ops-20130712/Ohana
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-ops-20130712/Ohana
- Property svn:mergeinfo deleted
-
branches/eam_branches/ipp-ops-20130712/Ohana/src/opihi
- Property svn:mergeinfo deleted
-
branches/eam_branches/ipp-ops-20130712/Ohana/src/opihi/pclient/job.c
r32632 r37067 3 3 int job (int argc, char **argv) { 4 4 5 int i, N, pid, status, priority;5 int i, N, pid, status, nicelevel; 6 6 char **targv; 7 7 8 priority= 0;8 nicelevel = 0; 9 9 if ((N = get_argument (argc, argv, "-nice"))) { 10 10 remove_argument (N, &argc, argv); 11 priority= atoi (argv[N]);11 nicelevel = atoi (argv[N]); 12 12 remove_argument (N, &argc, argv); 13 13 } … … 62 62 63 63 /* set nice level for the child process */ 64 if ( priority) {65 status = setpriority (PRIO_PROCESS, pid, priority);64 if (nicelevel) { 65 status = setpriority (PRIO_PROCESS, pid, nicelevel); 66 66 if (status == -1) { 67 gprint (GP_ERR, "error setting priority\n");67 gprint (GP_ERR, "error setting nicelevel\n"); 68 68 perror ("setpriority: "); 69 69 exit (2);
Note:
See TracChangeset
for help on using the changeset viewer.
