comparison src/main.c @ 7107:9220c7490cd1

[gaim-migrate @ 7672] This is a big one: normalize() -> gaim_normalize, linkify_text() -> gaim_markup_linkify(), gaim_get_size_string() -> gaim_str_size_to_units(), and moved clean_pid() to main.c. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Wed, 01 Oct 2003 06:17:28 +0000
parents c4faffdc0862
children d17a587efeb3
comparison
equal deleted inserted replaced
7106:db6bd3e794d8 7107:9220c7490cd1
350 } 350 }
351 351
352 /* And raise the curtain! */ 352 /* And raise the curtain! */
353 gtk_widget_show_all(mainwindow); 353 gtk_widget_show_all(mainwindow);
354 354
355 }
356
357 static void
358 clean_pid(void)
359 {
360 #ifndef _WIN32
361 int status;
362 pid_t pid;
363
364 do {
365 pid = waitpid(-1, &status, WNOHANG);
366 } while (pid != 0 && pid != (pid_t)-1);
367 if(pid == (pid_t)-1 && errno != ECHILD) {
368 char errmsg[BUFSIZ];
369 snprintf(errmsg, BUFSIZ, "Warning: waitpid() returned %d", pid);
370 perror(errmsg);
371 }
372 #endif
355 } 373 }
356 374
357 #if HAVE_SIGNAL_H 375 #if HAVE_SIGNAL_H
358 void sighandler(int sig) 376 void sighandler(int sig)
359 { 377 {