mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-23 07:36:16 +00:00
Fixed: Set process name (fixes the <Unknown> under Linux and OS X)
This commit is contained in:
parent
a13d92c87a
commit
37caaac787
1 changed files with 3 additions and 0 deletions
|
@ -545,6 +545,9 @@ int main(int argc, char **argv)
|
||||||
|
|
||||||
strcpy(filename, argv[0]);
|
strcpy(filename, argv[0]);
|
||||||
|
|
||||||
|
// set process name for logs
|
||||||
|
CLog::setProcessName(filename);
|
||||||
|
|
||||||
// ignore signal SIGPIPE generated by libwww
|
// ignore signal SIGPIPE generated by libwww
|
||||||
signal(SIGPIPE, sigHandler);
|
signal(SIGPIPE, sigHandler);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue