comparison src/util.c @ 3076:a7e03c5d2205

[gaim-migrate @ 3090] CLeaner PID stuff. Thanks, BMIller :) committer: Tailor Script <tailor@pidgin.im>
author Rob Flynn <gaim@robflynn.com>
date Sun, 17 Mar 2002 22:23:18 +0000
parents b68c648618a3
children da324fe688b3
comparison
equal deleted inserted replaced
3075:c0928d7fdcf9 3076:a7e03c5d2205
611 strftime(date, sizeof(date), "%H:%M:%S", localtime(&tme)); 611 strftime(date, sizeof(date), "%H:%M:%S", localtime(&tme));
612 return date; 612 return date;
613 } 613 }
614 614
615 615
616 gboolean clean_pid(gpointer dummy) 616 void clean_pid(void)
617 { 617 {
618 int status; 618 int status;
619 pid_t pid; 619 pid_t pid;
620 620
621 printf ("clean_pid\n");
621 pid = waitpid(-1, &status, WNOHANG); 622 pid = waitpid(-1, &status, WNOHANG);
622
623 if (pid == 0)
624 return TRUE;
625
626 return FALSE;
627 } 623 }
628 624
629 struct aim_user *find_user(const char *name, int protocol) 625 struct aim_user *find_user(const char *name, int protocol)
630 { 626 {
631 char *who = g_strdup(normalize(name)); 627 char *who = g_strdup(normalize(name));