Changeset 3232 for trunk/essentials/app-shells/bash/jobs.c
- Timestamp:
- Apr 29, 2007, 10:43:43 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/essentials/app-shells/bash/jobs.c
r3231 r3232 32 32 #if defined (HAVE_UNISTD_H) 33 33 # include <unistd.h> 34 #endif 35 36 #ifdef __OS2__ 37 extern int _setpgid(pid_t pid, pid_t pgid); 34 38 #endif 35 39 … … 1562 1566 map_over_jobs (print_job, format, -1); 1563 1567 } 1568 1569 #ifdef __OS2__ 1570 /* Overrides the kLIBC setpgid() ENOSYS stub. This implements the 1571 simple calls that requires no real work. */ 1572 int 1573 setpgid (pid, pgid) 1574 pid_t pid, pgid; 1575 { 1576 /* FIXME: if ppid != getpid(), check that it exists. */ 1577 if (pid == pgid || pgid == getpid()) 1578 return 0; 1579 return _setpgid (pid, pgid); 1580 } 1581 #endif 1564 1582 1565 1583 /* Fork, handling errors. Returns the pid of the newly made child, or 0.
Note:
See TracChangeset
for help on using the changeset viewer.