strange error



In my code...
int start_tmpd(CORBA_ORB *orb, CORBA_Environment *ev){
  pid_t pid;
  g_print("Starting TMPD:\n");
  if(pid==0){
    execl("/usr/bin/tmpd", NULL);
    g_print("FAILED\n");
    exit(-1);
  }
  if(pid<0){
    g_print("Couldn't fork client\n");
    return FALSE;
  }
  sleep(1);
  return TRUE;
}
 
during the run of the progam, I get:
 
Starting TMPD:
 
GLib-CRITICAL **: file gutils.c: line 249 (g_basename): assertion `file_name
!= NULL' failed.
... rest of the program output...
 
!? The code works... It looks like GLib has some problems with forking? Or
is it bad coding on my part...
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]