- Timestamp:
- May 3, 2010, 8:50:52 AM (16 years ago)
- Location:
- branches/simtest_nebulous_branches
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/simtest_nebulous_branches
- Property svn:mergeinfo changed
-
branches/simtest_nebulous_branches/Ohana
-
Property svn:mergeinfo
set to (toggle deleted branches)
/trunk/Ohana merged eligible /branches/eam_branches/Ohana.20100407 27635-27772 /branches/pap_delete/Ohana 27530-27595
-
Property svn:mergeinfo
set to (toggle deleted branches)
-
branches/simtest_nebulous_branches/Ohana/src/nightd/src/misc.c
r14590 r27840 11 11 int SetPID (pid_t *Xpid, char *Xuser, char *Xmachine) { 12 12 13 int t1, t2, t3; 13 14 pid_t pid; 14 15 char *username, machine[256]; … … 43 44 } 44 45 45 fscanf (f, "%*s %d", Xpid); 46 fscanf (f, "%*s %s", Xuser); 47 fscanf (f, "%*s %s", Xmachine); 46 t1 = fscanf (f, "%*s %d", Xpid); 47 t2 = fscanf (f, "%*s %s", Xuser); 48 t3 = fscanf (f, "%*s %s", Xmachine); 49 if ((t1 != 1) || (t2 != 2) || (t3 != 1)) { 50 fprintf (stderr, "error reading pid info\n"); 51 } 48 52 fclose (f); 49 53 return (FALSE); … … 125 129 126 130 eof = 0x04; 127 write (wfd[1], &eof, 1);131 if (write (wfd[1], &eof, 1) != 1) fprintf (stderr, "!\n"); 128 132 close (wfd[1]); 129 133
Note:
See TracChangeset
for help on using the changeset viewer.
