Searched defs:timeout (Results 1 - 9 of 9) sorted by relevance

/lxc/src/lxc/
H A Dstate.c108 extern int lxc_wait(const char *lxcname, const char *states, int timeout, argument
144 if (timeout != -1) {
150 if (lxc_monitor_read_timeout(fd, &msg, timeout) < 0) {
156 if (timeout != -1) {
161 if (timeout - elapsed_time <= 0)
163 timeout -= elapsed_time;
H A Dmonitor.c256 int timeout)
261 ret = poll(fds, nfds, timeout * 1000);
287 int lxc_monitor_read_timeout(int fd, struct lxc_msg *msg, int timeout) argument
295 return lxc_monitor_read_fdset(&fds, 1, msg, timeout);
255 lxc_monitor_read_fdset(struct pollfd *fds, nfds_t nfds, struct lxc_msg *msg, int timeout) argument
H A Dlxclock.c192 int lxclock(struct lxc_lock *l, int timeout) argument
199 if (!timeout) {
209 ts.tv_sec += timeout;
217 if (timeout) {
218 ERROR("Error: timeout not supported with flock");
H A Dlxcutmp.c434 struct itimerspec timeout; local
445 /* set a one second timeout. Repeated. */
446 timeout.it_value.tv_sec = 1;
447 timeout.it_value.tv_nsec = 0;
449 timeout.it_interval.tv_sec = 1;
450 timeout.it_interval.tv_nsec = 0;
452 result = timerfd_settime(fd, 0, &timeout, NULL);
H A Darguments.h69 long timeout; member in struct:lxc_arguments
H A Dlxccontainer.c599 static bool do_lxcapi_wait(struct lxc_container *c, const char *state, int timeout) argument
606 ret = lxc_wait(c->name, state, timeout, c->config_path);
614 /* we'll probably want to make this timeout configurable? */
615 int timeout = 5, ret, status; local
624 return do_lxcapi_wait(c, "RUNNING", timeout);
1600 static bool do_lxcapi_shutdown(struct lxc_container *c, int timeout) argument
1627 retv = do_lxcapi_wait(c, "STOPPED", timeout);
/lxc/src/lxc/tools/
H A Dlxc_stop.c51 if (lxc_safe_long(arg, &args->timeout) < 0)
70 {"timeout", required_argument, 0, 't'},
88 -t, --timeout=T wait T seconds before hard-stopping\n\
91 --nokill Only request clean shutdown, don't force kill after timeout\n\
96 .timeout = -2,
105 int timeout = a->timeout; local
114 if (timeout == 0)
127 if (timeout != -1) {
135 if (timeout !
[all...]
/lxc/src/lua-lxc/
H A Dcore.c184 int timeout = luaL_checkinteger(L, 2); local
186 lua_pushboolean(L, !!c->shutdown(c, timeout));
194 int timeout = luaL_checkinteger(L, 3); local
196 lua_pushboolean(L, !!c->wait(c, state, timeout));
/lxc/src/python-lxc/
H A Dlxc.c1329 static char *kwlist[] = {"timeout", NULL};
1330 int timeout = -1; local
1333 &timeout))
1336 if (self->container->shutdown(self->container, timeout)) {
1537 static char *kwlist[] = {"state", "timeout", NULL};
1539 int timeout = -1; local
1542 &state, &timeout))
1545 if (self->container->wait(self->container, state, timeout)) {
1761 "shutdown(timeout = -1) -> boolean\n"
1817 "wait(state, timeout
[all...]

Completed in 32 milliseconds