~ubuntu-branches/ubuntu/trusty/pvm/trusty-proposed

« back to all changes in this revision

Viewing changes to src/PGON/pvmdmimd.c

  • Committer: Bazaar Package Importer
  • Author(s): Steinar H. Gunderson
  • Date: 2006-08-09 00:00:40 UTC
  • mfrom: (2.1.5 dapper)
  • Revision ID: james.westby@ubuntu.com-20060809000040-16kh33tmxx2em716
Tags: 3.4.5-7
Build with SHELL=/bin/bash in debian/rules; fixes FTBFS when /bin/sh
isn't bash. (Closes: #379543)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
 
2
2
static char rcsid[] =
3
 
        "$Id: pvmdmimd.c,v 1.8 1999/07/08 19:00:27 kohl Exp $";
 
3
        "$Id: pvmdmimd.c,v 1.10 2002/02/21 23:19:28 pvmsrc Exp $";
4
4
 
5
5
/*
6
6
 *         PVM version 3.4:  Parallel Virtual Machine System
31
31
 */
32
32
 
33
33
/*
34
 
 *      mpp.c
 
34
 *      pvmdmimd.c
35
35
 *
36
36
 *  MPP interface.
37
37
 *
94
94
/*
95
95
 *
96
96
 * $Log: pvmdmimd.c,v $
 
97
 * Revision 1.10  2002/02/21 23:19:28  pvmsrc
 
98
 * Added new (not to be documented!) PVM_MAX_TASKS env var support.
 
99
 *      - for Mahir Lokvancic <mahir@math.ufl.edu>.
 
100
 *      - forcefully limits the number of tasks that can attach to a
 
101
 *              pvmd, required on Solaris in rare circumstances when hard
 
102
 *              FD_SETSIZE limit is reached, and all hell breaks loose...
 
103
 *      - check return for task_new() call, can now produce NULL ptr,
 
104
 *              indicating PvmOutOfRes...
 
105
 * (Spanker=kohl)
 
106
 *
 
107
 * Revision 1.9  2000/02/17 21:10:31  pvmsrc
 
108
 * Cleaned up comments...  mpp_load() args...
 
109
 * (Spanker=kohl)
 
110
 *
97
111
 * Revision 1.8  1999/07/08 19:00:27  kohl
98
112
 * Fixed "Log" keyword placement.
99
113
 *      - indent with " * " for new CVS.
701
715
                {
702
716
                        if (pids[j] > 0) 
703
717
                        {
704
 
                                tp = task_new(myhostpart + ptypepart + sp->n_first + j);
 
718
                                if ((tp = task_new(myhostpart + ptypepart
 
719
                                                + sp->n_first + j)) == NULL) {
 
720
                                        err = PvmOutOfRes;
 
721
                                        goto done;
 
722
                                }
705
723
                                task_setpid(tp, pids[j]);
706
724
                                tp->t_a_out = STRALLOC(name);
707
725
                                tp->t_ptid = ptid;