https://bugs.winehq.org/show_bug.cgi?id=8332
--- Comment #24 from Sebastian Lackner sebastian@fds-team.de --- (In reply to oiaohm from comment #23)
After reading the system ping hack. Yes it contains a bad practice.
Use of system command should be frowned on. Issue 1 with system is the possibility of coder error. Issue 2 the command line has to be broken up into null terminated strings any how. Something out of exec commands should be used. http://linux.die.net/man/3/execv
I thought I mentioned it here already, but seems like I didn't. Inspired by Brunos idea I've added a similar proof-of-concept patch to Wine Staging, which addresses exactly these problems:
https://github.com/wine-compholio/wine-staging/blob/master/patches/iphlpapi-...
Using exec in Wine in general is not necessarily bad, but it would of course be better to have only one "ping service" running instead of one application for each request. Besides that the idea seems to work very well and is indeed sufficient for a lot of applications, especially because additional input/output parameters are translated.