~serge-hallyn/ubuntu/quantal/lxc/lxc-user-ns

« back to all changes in this revision

Viewing changes to src/lxc/start.c

  • Committer: Package Import Robot
  • Author(s): Serge Hallyn, Stéphane Graber, Serge Hallyn
  • Date: 2012-06-26 13:04:01 UTC
  • Revision ID: package-import@ubuntu.com-20120626130401-8tclzscid8u2lzxu
Tags: 0.8.0~rc1-4ubuntu17
[ Stéphane Graber ]
* 0090-lxc-ubuntu-use-dpkg-add-architecture: Update lxc-ubuntu
  template to use "dpkg --add-architecture" in containers running
  dpkg >= 1.16.2. (LP: #1017862)

[ Serge Hallyn ]
* 0091-introduce-container-hooks.patch: introduce container hooks at several
  points in the container life-cycle.
* Add copyright statement to lxc-aa-custom-profile
* Add debian/hooks/mountcgroups as an example (installed under
  /usr/share/lxc/hooks)

Show diffs side-by-side

added added

removed removed

Lines of Context:
360
360
                goto out_free_name;
361
361
        }
362
362
 
 
363
        HOOK(name, "pre-start", conf);
 
364
 
363
365
        if (lxc_create_tty(name, conf)) {
364
366
                ERROR("failed to create the ttys");
365
367
                goto out_aborting;
404
406
        lxc_set_state(name, handler, STOPPING);
405
407
        lxc_set_state(name, handler, STOPPED);
406
408
 
 
409
        HOOK(name, "post-stop", handler->conf);
 
410
 
407
411
        /* reset mask set by setup_signal_fd */
408
412
        if (sigprocmask(SIG_SETMASK, &handler->oldmask, NULL))
409
413
                WARN("failed to restore sigprocmask");
585
589
 
586
590
        close(handler->sigfd);
587
591
 
 
592
        HOOK(handler->name, "start", handler->conf);
 
593
 
588
594
        /* after this call, we are in error because this
589
595
         * ops should not return as it execs */
590
596
        if (handler->ops->start(handler, handler->data))