* Tint2 : common windows function
*
* Copyright (C) 2007 Pål Staurland (staura@gmail.com)
-* Modified (C) 2008 thierry lorthiois (lorthiois@bbsoft.fr)
+* Modified (C) 2008 thierry lorthiois (lorthiois@bbsoft.fr) from Omega distribution
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License version 2
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-
+#include <unistd.h>
#include "common.h"
#include "../server.h"
}
+void tint_exec(const char *command)
+{
+ if (command) {
+ pid_t pid;
+ pid = fork();
+ if (pid == 0) {
+ // change for the fork the signal mask
+// sigset_t sigset;
+// sigprocmask(SIG_SETMASK, &sigset, 0);
+// sigprocmask(SIG_UNBLOCK, &sigset, 0);
+ execl("/bin/sh", "/bin/sh", "-c", command, NULL);
+ _exit(0);
+ }
+ }
+}
+
+
int hex_char_to_int (char c)
{
int r;