/illumos-gate/usr/src/cmd/drd/ |
H A D | drd.c | 141 pid_t pid; local 143 if ((pid = fork()) == -1) { 148 if (pid != 0) {
|
/illumos-gate/usr/src/cmd/fm/fmd/common/ |
H A D | fmd_main.c | 86 pid_t pid; local 174 if ((pid = fork()) == -1) 184 if (pid != 0) { 190 if (waitpid(pid, &status, 0) == pid && WIFEXITED(status))
|
/illumos-gate/usr/src/cmd/rpcsvc/rpc.bootparamd/ |
H A D | bootparam_prot_svc.c | 59 pid_t pid; local 130 pid = fork(); 131 if (pid < 0) { 135 if (pid)
|
/illumos-gate/usr/src/cmd/sendmail/db/db/ |
H A D | db_appinit.c | 649 u_long pid; local 678 for (pid = getpid(); *--trv == 'X'; pid /= 10) 679 switch (pid % 10) {
|
/illumos-gate/usr/src/cmd/acpihpd/ |
H A D | acpihpd.c | 55 #define ACPIHPD_PID_FILE "/var/run/acpihpd.pid" /* lock file path */ 132 pid_t pid; local 140 if ((pid = fork()) < 0) { 144 if (pid > 0) { 162 debug_print(0, "could not create pid file: %s", 171 debug_print(0, "could not lock pid file"); 184 debug_print(0, "pid file write failed: %s",
|
/illumos-gate/usr/src/cmd/backup/lib/ |
H A D | myrcmd.c | 72 pid_t pid; local 88 pid = getpid(); 175 (void) fcntl(s, F_SETOWN, pid);
|
/illumos-gate/usr/src/cmd/bnu/ |
H A D | ulockf.c | 66 static char pid[SIZEOFPID+2] = { '\0' }; /* +2 for '\n' and NULL */ local 73 if (pid[0] == '\0') { 74 (void) sprintf(pid, "%*ld\n", SIZEOFPID, (long) getpid()); 85 if (onelock(pid, tempfile, name) == -1) { 90 if (onelock(pid, tempfile, name)) { 104 * - use kill(pid,0) 140 DEBUG(4, "kill pid (%ld), ", (long) lpid); 287 * makes a lock on behalf of pid. 289 * pid - process id 297 onelock(pid,tempfil [all...] |
H A D | uusched.c | 256 pid_t pid, ret; local 264 if ((pid = vfork()) == 0) { 272 while ((ret = wait(&status)) != pid) 276 DEBUG(3, "ret=%ld, ", (ret == pid ? (long) status : (long) ret));
|
/illumos-gate/usr/src/cmd/cmd-inet/lib/nwamd/ |
H A D | main.c | 105 pid_t pid; local 114 if ((pid = fork()) == (pid_t)-1) 116 if (pid != 0) { 118 nlog(LOG_DEBUG, "child %ld exited, daemonizing", pid); 123 if ((pid = fork()) == (pid_t)-1) 125 if (pid != 0) { 344 nlog(LOG_INFO, "nwamd pid %d started", getpid());
|
/illumos-gate/usr/src/cmd/cmd-inet/sbin/dhcpagent/ |
H A D | script_handler.c | 126 pid_t pid; local 129 if ((pid = fork()) == -1) 132 if (pid == 0) { 157 * pass script's pid to dhcpagent. 159 (void) write(fd, &pid, sizeof (pid)); 162 if (waitpid(pid, NULL, 0) >= 0) { 173 (void) kill(pid, script_signal); 287 pid_t pid; local 313 if ((pid [all...] |
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/ftp/ |
H A D | pclose.c | 91 pid_t pid; local 113 if ((pid = vfork()) == 0) { 123 if (pid == (pid_t)-1) { 128 popen_pid[myside] = pid; 145 pid_t child, pid; local 157 while ((pid = wait(&status)) != child && pid != (pid_t)-1) 161 return (pid == (pid_t)-1 ? -1 : 0);
|
/illumos-gate/usr/src/cmd/fs.d/nfs/nfs4cbd/ |
H A D | nfs4cbd.c | 96 int pid; local 148 * establish our lock on the lock file and write our pid to it. 152 pid = _enter_daemon_lock(NFS4CBD); 153 switch (pid) {
|
/illumos-gate/usr/src/cmd/fs.d/reparsed/ |
H A D | reparsed.c | 121 pid_t pid; local
|
/illumos-gate/usr/src/cmd/gcore/ |
H A D | gcore.c | 254 pid_t pid = Pstatus(P)->pr_pid; local 255 (void) core_get_process_path(path, sizeof (path), pid); 258 (void) core_get_process_content(&content, pid); 288 "[ -pgF ] [ -o filename ] [ -c content ] pid ...\n", pname);
|
/illumos-gate/usr/src/cmd/hal/hald/ |
H A D | logger.c | 147 static pid_t pid = -1; local 179 if ((int) pid == -1) 180 pid = getpid (); 181 snprintf (logmsg, sizeof(logmsg), "[%d]: %s.%03d %s %s:%d: %s\n", pid, tbuf, (int)(tnow.tv_usec/1000), pri, file, line, buf); 218 static pid_t pid = -1; local 223 if ((int) pid == -1) 224 pid = getpid (); 234 syslog (LOG_INFO, "%d: %s.%03d: %s", pid, tbuf, (int)(tnow.tv_usec/1000), buf); 236 fprintf (stderr, "%d: %s.%03d: %s", pid, tbuf, (int)(tnow.tv_usec/1000), buf);
|
/illumos-gate/usr/src/cmd/hotplugd/ |
H A D | hotplugd.c | 216 pid_t pid; local 236 if ((pid = fork()) == -1) { 242 if (pid > 0) { 246 if ((waitpid(pid, &status, 0) == pid) && WIFEXITED(status))
|
/illumos-gate/usr/src/cmd/keyserv/ |
H A D | update.c | 84 pid_t pid; local 110 pid = _openchild(updater, &childargs, &childrslt); 111 if (pid < 0) 145 * returns pid, or -1 for failure 151 pid_t pid; local 163 switch (pid = vfork()) { 165 switch (pid = fork()) { 197 return (pid);
|
/illumos-gate/usr/src/cmd/ldapcachemgr/ |
H A D | cachemgr.h | 66 pid_t pid; /* pid of the door client */ member in struct:waiting_list 118 extern int is_called_from_nscd(pid_t pid); /* in cachemgr.c */
|
/illumos-gate/usr/src/cmd/lms/tools/ |
H A D | ATVersion.cpp | 51 #define AT_PIDFILE_NAME_FORMAT IATSTATERUNDIR "/%." ATstr(AT_APPNAME_MAXSIZE) "s.pid" 52 #define AT_DEF_PIDFILE_NAME_FORMAT "/var/run/%." ATstr(AT_APPNAME_MAXSIZE) "s.pid" 118 unsigned long pid; local 129 pidf >> pid; local 131 if (!(GetAppPathByPid(pid).empty())) { 132 pids.push_back(pid); 141 pidf >> pid; local 143 if (!(GetAppPathByPid(pid).empty())) { 144 pids.push_back(pid); 162 pid 186 GetAppPathByPid(unsigned long pid) argument [all...] |
/illumos-gate/usr/src/cmd/svc/startd/ |
H A D | wait.c | 30 * Use event ports to poll on the set of fds representing the /proc/[pid]/psinfo 180 * wait_register is called after we have called fork(2), and know which pid we 188 * Returns 0 if registration successful, 1 if child pid did not exist, and -1 192 wait_register(pid_t pid, const char *inst_fmri, int am_parent, int direct) argument 194 char *fname = uu_msprintf("/proc/%ld/psinfo", pid); 198 assert(pid != 0); 208 wi->wi_pid = pid; 245 log_framework(LOG_DEBUG, "monitoring PID %ld on fd %d (%s)\n", pid, fd, 327 wait_postfork(pid_t pid) argument 333 if (pid ! [all...] |
/illumos-gate/usr/src/cmd/tip/aculib/ |
H A D | v831.c | 31 int status, pid; local 82 while ((pid = wait(&status)) != child && pid != -1)
|
/illumos-gate/usr/src/cmd/tip/ |
H A D | uucplock.c | 34 #define SIZEOFPID 10 /* maximum number of digits in a pid */ 84 static char pid[SIZEOFPID+2] = { '\0' }; /* +2 for '\n' and NULL */ local 87 if (pid[0] == '\0') { 88 (void) snprintf(pid, sizeof (pid), "%*d\n", SIZEOFPID, 93 if (onelock(pid, tempfile, file) == -1) { 99 if (onelock(pid, tempfile, file)) { 111 * - use kill(pid, 0) - (this only works on ATTSV and some hacked 199 onelock(char *pid, char *tempfile, char *name) argument 224 if (write(fd, pid, SIZEOFPI [all...] |
/illumos-gate/usr/src/cmd/tnf/prex/ |
H A D | prbk.c | 46 pid_t pid; member in struct:_pidlist 184 * Add the given pid (new) to the pidlist (pl). 194 gettext("Out of memory -- can't process pid %d\n"), 199 npl->pid = new; 205 * For each pid, check whether it's already in the filter list, 218 err = tnfctl_filter_list_add(g_hndl, ppl->pid); 221 ppl->pid, tnfctl_strerror(err)); 231 * For each pid, complain if it's not in the process filter list; 247 err = tnfctl_filter_list_delete(g_hndl, tmp->pid); 254 tmp->pid); [all...] |
/illumos-gate/usr/src/cmd/tnf/tnfdump/ |
H A D | cooked.c | 203 int lwpid = 0, pid = 0; local 219 pid = tnf_get_int32(temp); 230 pid, lwpid, tid, cpuid); 236 pid, lwpid, tid, "-");
|
/illumos-gate/usr/src/cmd/truss/ |
H A D | ipc.c | 106 * every time a pid is added or removed from the table Ecritical(1)/Xcritical(1) 261 int pid; local 321 pid = Psp->pr_pid; 322 } else if ((pid = strtol(dirname, &next, 10)) < 0 || 336 pid == getpid() || /* process opened truss's /proc file */ 337 pid == 0) { /* process opened process 0 */ 352 if (pid == Psp->pr_pid) { /* process opened its own /proc file */ 360 * Search for a matching pid in our set of controlled processes. 363 if (gps->spid[i] == pid) { 364 pid [all...] |