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
@@ -1,3 +1,8 @@
|
|||||||
|
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.
|
||||||
|
|
||||||
1998-11-11 Martin Baulig <martin@home-of-linux.org>
|
1998-11-11 Martin Baulig <martin@home-of-linux.org>
|
||||||
|
|
||||||
* include/glibtop/gnuserv.h (MCOOKIE_SCREEN): Don't define this
|
* include/glibtop/gnuserv.h (MCOOKIE_SCREEN): Don't define this
|
||||||
|
@@ -108,7 +108,7 @@ glibtop_open_l (glibtop *server, const char *program_name,
|
|||||||
close (server->input [0]); close (server->output [1]);
|
close (server->input [0]); close (server->output [1]);
|
||||||
dup2 (server->input [1], 1);
|
dup2 (server->input [1], 1);
|
||||||
dup2 (server->output [0], 0);
|
dup2 (server->output [0], 0);
|
||||||
execl (LIBGTOP_SERVER, NULL);
|
execl (LIBGTOP_SERVER, "libgtop-server", NULL);
|
||||||
glibtop_error_io_r (server, "execl (%s)",
|
glibtop_error_io_r (server, "execl (%s)",
|
||||||
LIBGTOP_SERVER);
|
LIBGTOP_SERVER);
|
||||||
_exit (2);
|
_exit (2);
|
||||||
|
Reference in New Issue
Block a user