[Bug c++/85226] New: system() gives pid 0 and doesn't launch the command
f-rog at hotmail dot com
gcc-bugzilla@gcc.gnu.org
Thu Apr 5 10:53:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85226
Bug ID: 85226
Summary: system() gives pid 0 and doesn't launch the command
Product: gcc
Version: 7.3.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: f-rog at hotmail dot com
Target Milestone: ---
Created attachment 43852
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=43852&action=edit
Replace the naga.cpp in sry folder before install to test
I have this github project :
https://github.com/lostallmymoney/Razer_Key_Mapper_Linux .
To replicate this bug you can install and launch it by running sh install.sh ,
next open a terminal and run naga -restart .
Restarting the daemon causes a bug with system('command') wich makes it not
launch the command and gives the PID 0. You can test the code with this file so
it tries to use system right after -restart. Here's the edited file :
More information about the Gcc-bugs
mailing list