search for: initial_setting

Displaying 3 results from an estimated 3 matches for "initial_setting".

2007 Feb 20
1
error message for record not found ?
...`initialize'' C:/InstantRails-1.3/ruby/lib/ruby/1.8/drb/drb.rb:1624:in `start_service'' script/backgroundrb/start:108 ------------ Worker code ---------- class SessionWorker < BackgrounDRb::Rails attr_reader :time_remaining def do_work(args) @time_remaining = args[:initial_setting].to_i @emrec_id = args[:emrec_id] @session_id = args[:session_id] @session_rec = Session.find(:first, :conditions => ["sessid = ?", @session_id]) watch_session(args) sleep(2) clean_up end def watch_session(args) w...
2016 Apr 04
0
[PATCH 2/2] Use 'error' function for fprintf followed by exit.
...URE); - } + if (g == NULL) + error (EXIT_FAILURE, errno, "guestfs_create"); /* There should be no backend settings initially. */ strs = guestfs_get_backend_settings (g); @@ -82,10 +81,8 @@ main (int argc, char *argv[]) setenv ("LIBGUESTFS_BACKEND_SETTINGS", initial_settings, 1); g = guestfs_create (); - if (g == NULL) { - fprintf (stderr, "failed to create handle\n"); - exit (EXIT_FAILURE); - } + if (g == NULL) + error (EXIT_FAILURE, errno, "guestfs_create"); } /* Check the settings are correc...
2016 Apr 04
2
[PATCH 1/2] Use 'error' function consistently throughout.
Wherever we had code which did: if (something_bad) { perror (...); exit (EXIT_FAILURE); } replace this with use of the error(3) function: if (something_bad) error (EXIT_FAILURE, errno, ...); The error(3) function is supplied by glibc, or by gnulib on platforms which don't have it, and is much more flexible than perror(3). Since we already use error(3), there seems to be