diff options
author | Omar Tarabai <tarabai@devegypt.com> | 2014-05-05 15:49:21 +0000 |
---|---|---|
committer | Omar Tarabai <tarabai@devegypt.com> | 2014-05-05 15:49:21 +0000 |
commit | ed35aa248e65f947ea436528c3861644dca381da (patch) | |
tree | 17da6649c174d87634e1b0d8f497508b3443470c /src/sensor | |
parent | 4864f0e9dd779f5a36c798293336e5aab4ad685a (diff) | |
download | gnunet-ed35aa248e65f947ea436528c3861644dca381da.tar.gz gnunet-ed35aa248e65f947ea436528c3861644dca381da.zip |
cleanup
Diffstat (limited to 'src/sensor')
-rw-r--r-- | src/sensor/gnunet-service-sensor.c | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/src/sensor/gnunet-service-sensor.c b/src/sensor/gnunet-service-sensor.c index b831b2be7..b11da6ecd 100644 --- a/src/sensor/gnunet-service-sensor.c +++ b/src/sensor/gnunet-service-sensor.c | |||
@@ -835,27 +835,6 @@ sensor_run (void *cls, | |||
835 | } | 835 | } |
836 | else if(sources[1] == sensorinfo->source) | 836 | else if(sources[1] == sensorinfo->source) |
837 | { | 837 | { |
838 | /*GNUNET_OS_start_process_s(GNUNET_NO, | ||
839 | GNUNET_OS_INHERIT_STD_OUT_AND_ERR, | ||
840 | NULL, | ||
841 | "touch", | ||
842 | "touch /home/omar/hiii");*/ | ||
843 | /*GNUNET_OS_start_process(GNUNET_NO, | ||
844 | GNUNET_OS_INHERIT_STD_OUT_AND_ERR, | ||
845 | NULL, | ||
846 | NULL, | ||
847 | NULL, | ||
848 | "/home/omar/workspace/gnunet/src/sensor/sensors/averagepingrtt-files/avgping.sh", | ||
849 | "avgping.sh", | ||
850 | NULL); | ||
851 | GNUNET_OS_start_process(GNUNET_NO, | ||
852 | GNUNET_OS_INHERIT_STD_OUT_AND_ERR, | ||
853 | NULL, | ||
854 | NULL, | ||
855 | NULL, | ||
856 | "whoami", | ||
857 | "whoami", | ||
858 | NULL);*/ | ||
859 | //FIXME: break execution if process is a path | 838 | //FIXME: break execution if process is a path |
860 | //check if the process exists in $PATH | 839 | //check if the process exists in $PATH |
861 | process_path = GNUNET_strdup(sensorinfo->ext_process); | 840 | process_path = GNUNET_strdup(sensorinfo->ext_process); |
@@ -885,15 +864,6 @@ sensor_run (void *cls, | |||
885 | GNUNET_free(process_path); | 864 | GNUNET_free(process_path); |
886 | return; | 865 | return; |
887 | } | 866 | } |
888 | /*GNUNET_OS_start_process(GNUNET_NO, | ||
889 | GNUNET_OS_INHERIT_STD_OUT_AND_ERR, | ||
890 | NULL, | ||
891 | NULL, | ||
892 | NULL, | ||
893 | process_path, | ||
894 | sensorinfo->ext_process, | ||
895 | sensorinfo->ext_args, | ||
896 | NULL)*/ | ||
897 | GNUNET_OS_command_run(&sensor_process_callback, | 867 | GNUNET_OS_command_run(&sensor_process_callback, |
898 | sensorinfo, | 868 | sensorinfo, |
899 | GNUNET_TIME_UNIT_FOREVER_REL, | 869 | GNUNET_TIME_UNIT_FOREVER_REL, |