Overview
Comment: | Updated to allow (and require) user to specify timeout |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
227c179b064b6689bb49f7429e85ef7a |
User & Date: | rkeene on 2012-09-09 21:25:04 |
Other Links: | manifest | tags |
Context
2012-09-09
| ||
21:25 | Corrected example in test.tcl check-in: 2c31ced898 user: rkeene tags: trunk | |
21:25 | Updated to allow (and require) user to specify timeout check-in: 227c179b06 user: rkeene tags: trunk | |
21:18 | Started processing "umask" and "cwd" arguments Updated to have 30sec (currently hard-coded) timeout for starting processes check-in: 270bafa39f user: rkeene tags: trunk | |
Changes
Modified initrd/admin-tclkit/kitcreator-modules/system/build-dyn.sh from [078554ca42] to [3cc9484186].
1 2 3 4 5 6 7 8 9 10 | 1 2 3 4 5 6 7 8 9 10 11 12 | - - + + | # /bin/bash # Perform common build options . build-common.sh # Compile using the same options as Tcl TCLCONFIGSH="$(find /usr/lib /usr/lib64 /usr/local/lib /usr/local/lib64 /lib /lib64 -name tclConfig.sh -print -quit)" . "${TCLCONFIGSH}" |
Modified initrd/admin-tclkit/kitcreator-modules/system/system.c from [dc2605a233] to [1d6aabc455].
1 2 3 4 5 6 7 8 9 10 11 12 | 1 2 3 4 5 6 7 8 9 10 11 12 13 | + | #define _LINUX_SOURCE 1 #include <sys/syscall.h> #include <netinet/in.h> #include <arpa/inet.h> #include <sys/socket.h> #include <sys/select.h> #include <sys/mount.h> #include <sys/types.h> #include <sys/ioctl.h> #include <sys/swap.h> #include <sys/stat.h> #include <sys/wait.h> #include <stdlib.h> |
︙ | |||
1875 1876 1877 1878 1879 1880 1881 | 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 | - - + + + - - - + + + - + + + + + + - - | } return(retval); } static int tclsystem_tsmf_start_svc(ClientData cd, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) { struct timeval select_timeout; |
︙ | |||
1959 1960 1961 1962 1963 1964 1965 | 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 | - + | if (child != 0) { /* 4.parent. Get PGID from child */ /* 4.parent.a. Close write end of pipe -- we are read-only */ close(fds[1]); fd = fds[0]; /* 4.parent.b. Read process group ID of child from pipe */ |
︙ |
Modified initrd/admin-tclkit/kitcreator-modules/system/test.tcl from [8645af428b] to [97fe9fd63b].
1 2 3 4 5 6 7 8 9 10 11 12 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 | + + | #! /usr/bin/env tclsh puts [exec ./build-dyn.sh] load ./system.so ::system::syscall::tsmf_start_svc blah /bin/true /tmp/logfile [list PATH=/bin] / 022 root root foreach iface [system::syscall::ifconfig] { #lo0:2: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1 # inet 127.0.0.1 netmask ff000000 #aggr100003:1: flags=201000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4,CoS> mtu 1500 index 2 # inet 140.194.100.149 netmask ffffff00 broadcast 140.194.100.255 |
︙ |