~ubuntu-branches/ubuntu/oneiric/udisks/oneiric-proposed

« back to all changes in this revision

Viewing changes to src/poller.c

  • Committer: Bazaar Package Importer
  • Author(s): Michael Biebl, Martin Pitt, Michael Biebl
  • Date: 2010-03-05 09:17:21 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20100305091721-g5pe3lfj479ei5ev
Tags: 1.0.0~git20100305.fa313b2-1
* New upstream git snapshot:
  - Add profiling support.
  - Fix benchmarking for large files.

[ Martin Pitt ]
* Add debian/udisks.postrm: Clean up /var/lib/udisks on purge.
* debian/udisks.postinst: Restart the daemon if we stopped it, so that
  clients don't suddenly stop getting signals.
* debian/udisks.postinst: Migrate DeviceKit-disks mtab file on upgrade.

[ Michael Biebl ]
* Disable support for remote access.
* debian/patches/10-ide-cd-support.patch
  - Update patch for udisks. While at it, fix a bug when cleaning up the
    poller_devices_to_poll list on device unplug. (Closes: #561707)

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
#include <sys/stat.h>
31
31
#include <fcntl.h>
32
32
#include <string.h>
 
33
#include <errno.h>
33
34
 
34
35
#include "poller.h"
35
36
#include "device.h"
340
341
#ifdef POLL_SHOW_DEBUG
341
342
      g_print ("**** POLLER (%d): Sending poll command: '%s'\n", getpid (), devices_currently_polled);
342
343
#endif
343
 
      write (poller_daemon_write_end_fd, devices_currently_polled, strlen (devices_currently_polled));
 
344
      if (write (poller_daemon_write_end_fd, devices_currently_polled, strlen (devices_currently_polled)) < 0)
 
345
        g_error ("**** POLLER (%d): Failed to send polled devices: %s", getpid (), g_strerror (errno));
344
346
    }
345
347
  else
346
348
    {