Changeset 29 for trunk/pbs_drmaa/submit.c
- Timestamp:
- 10/17/11 01:49:55 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/pbs_drmaa/submit.c
r24 r29 151 151 if( name && name[0] != '!' && pbs_tmpl->get_attr( pbs_tmpl, name ) ) 152 152 { 153 struct attrl *p;154 const char *resource;155 153 const char *value; 154 156 155 value = pbs_tmpl->get_attr( pbs_tmpl, name ); 157 fsd_malloc( p, struct attrl ); 158 memset( p, 0, sizeof(struct attrl) ); 159 p->next = pbs_attr; 160 pbs_attr = p; 161 resource = strchr( name, '.' ); 162 if( resource ) 163 { 164 p->name = fsd_strndup( name, resource-name ); 165 p->resource = fsd_strdup( resource+1 ); 166 } 167 else 168 p->name = fsd_strdup( name ); 169 fsd_log_debug(("set attr: %s = %s", name, value)); 170 p->value = fsd_strdup( value ); 171 p->op = SET; 156 pbs_attr = pbsdrmaa_add_attr( pbs_attr, name, value ); 172 157 } 173 158 }
Note: See TracChangeset
for help on using the changeset viewer.