1
clrmame Discussion / Re: clrmame first-run questions
« on: 04 October 2024, 06:51 »
Ok....I think I've found something about the problem behind it. After running my test builds on a virtual box in wine, I see that the process handle is invalid and so waiting for it fails.... Searching the internet gives me "Native *NIX processes won't have process handle - they are run outside Wine."
Asking an AI gives me a workaround by using a wrapper script....
#!/bin/bash
"$@" &
echo $! > /tmp/myprocess.pid
wait $!
rm /tmp/myprocess.pid
so my createProcess call runs the wrapper script and passing the actual command to it and waits for its completion. The script itself then runs my given commandline...
hmm....surely this would only needed on Linux/Wine (i.e. it would take some option/mechanism to activate it and is deactivated by default for normal windows users).
I will play around with it a bit
hmm...no luck yet.....seems that Wine users need to use datfiles ;-)
But maybe somebody has an idea
Asking an AI gives me a workaround by using a wrapper script....
#!/bin/bash
"$@" &
echo $! > /tmp/myprocess.pid
wait $!
rm /tmp/myprocess.pid
so my createProcess call runs the wrapper script and passing the actual command to it and waits for its completion. The script itself then runs my given commandline...
hmm....surely this would only needed on Linux/Wine (i.e. it would take some option/mechanism to activate it and is deactivated by default for normal windows users).
I will play around with it a bit
hmm...no luck yet.....seems that Wine users need to use datfiles ;-)
But maybe somebody has an idea