~legolas/ubuntu/natty/php5/5.3.5

« back to all changes in this revision

Viewing changes to sapi/fpm/fpm/fpm_clock.c

  • Committer: Stas Verberkt
  • Date: 2011-02-01 09:27:15 UTC
  • Revision ID: legolas@legolasweb.nl-20110201092715-yq052iu2yl4i2eyg
Inserted PHP 5.3.5.

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
                struct timespec ts;
38
38
 
39
39
                if (0 > clock_gettime(CLOCK_MONOTONIC, &ts)) {
40
 
                        zlog(ZLOG_STUFF, ZLOG_SYSERROR, "clock_gettime() failed");
 
40
                        zlog(ZLOG_SYSERROR, "clock_gettime() failed");
41
41
                        return -1;
42
42
                }
43
43
 
69
69
        ret = host_get_clock_service(mach_host_self(), REALTIME_CLOCK, &mach_clock);
70
70
 
71
71
        if (ret != KERN_SUCCESS) {
72
 
                zlog(ZLOG_STUFF, ZLOG_ERROR, "host_get_clock_service() failed: %s", mach_error_string(ret));
 
72
                zlog(ZLOG_ERROR, "host_get_clock_service() failed: %s", mach_error_string(ret));
73
73
                return -1;
74
74
        }
75
75
 
77
77
        ret = clock_get_time(mach_clock, &aTime);
78
78
 
79
79
        if (ret != KERN_SUCCESS) {
80
 
                zlog(ZLOG_STUFF, ZLOG_ERROR, "clock_get_time() failed: %s", mach_error_string(ret));
 
80
                zlog(ZLOG_ERROR, "clock_get_time() failed: %s", mach_error_string(ret));
81
81
                return -1;
82
82
        }
83
83
 
93
93
        ret = clock_get_time(mach_clock, &aTime);
94
94
 
95
95
        if (ret != KERN_SUCCESS) {
96
 
                zlog(ZLOG_STUFF, ZLOG_ERROR, "clock_get_time() failed: %s", mach_error_string(ret));
 
96
                zlog(ZLOG_ERROR, "clock_get_time() failed: %s", mach_error_string(ret));
97
97
                return -1;
98
98
        }
99
99