Deleted Added
full compact
ctm_dequeue.c (50479) ctm_dequeue.c (79452)
1/*
2 * Copyright (c) 1996, Gary J. Palmer
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *

--- 12 unchanged lines hidden (view full) ---

21 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 *
1/*
2 * Copyright (c) 1996, Gary J. Palmer
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *

--- 12 unchanged lines hidden (view full) ---

21 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 *
29 * $FreeBSD: head/usr.sbin/ctm/ctm_dequeue/ctm_dequeue.c 50479 1999-08-28 01:35:59Z peter $
29 * $FreeBSD: head/usr.sbin/ctm/ctm_dequeue/ctm_dequeue.c 79452 2001-07-09 09:24:06Z brian $
30 */
31
32/*
33 * ctm_dequeue: Dequeue queued delta pieces and mail them.
34 *
35 * The pieces have already been packaged up as mail messages by ctm_smail,
36 * and will be simply passed to sendmail in alphabetical order.
37 */

--- 142 unchanged lines hidden (view full) ---

180 switch (child = fork())
181 {
182 case -1:
183 err("*fork");
184 return(1);
185
186 case 0: /* Child */
187 dup2(ifd, 0);
30 */
31
32/*
33 * ctm_dequeue: Dequeue queued delta pieces and mail them.
34 *
35 * The pieces have already been packaged up as mail messages by ctm_smail,
36 * and will be simply passed to sendmail in alphabetical order.
37 */

--- 142 unchanged lines hidden (view full) ---

180 switch (child = fork())
181 {
182 case -1:
183 err("*fork");
184 return(1);
185
186 case 0: /* Child */
187 dup2(ifd, 0);
188 execl(_PATH_SENDMAIL, _PATH_SENDMAIL, "-odq", "-t", NULL);
188 execl(_PATH_SENDMAIL, _PATH_SENDMAIL, "-odq", "-t", (char *)NULL);
189 err("*exec: %s", _PATH_SENDMAIL);
190 _exit(1);
191
192 default: /* Parent */
193 while ((pid = wait(&status)) != child)
194 {
195 if (pid == -1 && errno != EINTR)
196 {

--- 13 unchanged lines hidden ---
189 err("*exec: %s", _PATH_SENDMAIL);
190 _exit(1);
191
192 default: /* Parent */
193 while ((pid = wait(&status)) != child)
194 {
195 if (pid == -1 && errno != EINTR)
196 {

--- 13 unchanged lines hidden ---