We need to set argv[0] in call to execl () to avoid a core dump in _init
1998-11-18 Martin Baulig <martin@home-of-linux.org> * lib/open.c (glibtop_open_l): We need to set argv[0] in call to execl () to avoid a core dump in _init () on FreeBSD 3.0.
This commit is contained in:
committed by
Martin Baulig
parent
6abcbd5458
commit
92f1bf261c
@@ -108,7 +108,7 @@ glibtop_open_l (glibtop *server, const char *program_name,
|
||||
close (server->input [0]); close (server->output [1]);
|
||||
dup2 (server->input [1], 1);
|
||||
dup2 (server->output [0], 0);
|
||||
execl (LIBGTOP_SERVER, NULL);
|
||||
execl (LIBGTOP_SERVER, "libgtop-server", NULL);
|
||||
glibtop_error_io_r (server, "execl (%s)",
|
||||
LIBGTOP_SERVER);
|
||||
_exit (2);
|
||||
|
Reference in New Issue
Block a user