-/* main.c - NeonServ v5.2
- * Copyright (C) 2011 Philipp Kreil (pk910)
+/* main.c - NeonServ v5.3
+ * Copyright (C) 2011-2012 Philipp Kreil (pk910)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
memcpy(restart_argv, argv, argc * sizeof(char *));
restart_argv[argc] = NULL;
+ #ifdef WIN32
+ execv(argv[0], (const char * const*)restart_argv);
+ #else
execv(argv[0], restart_argv);
+ #endif
}
goto main;
}